//
//  Common.swift
//  CarShare
//
//  Created by Pro on 2017/12/13.
//

import Foundation
import UIKit

let mapApiKey = "1adac5c1357d98bffd81c87dcf0a9054"

/** APP主色调 */
let APPColor = #colorLiteral(red: 0.9843137255, green: 0.3960784314, blue: 0.2549019608, alpha: 1)

/** 深 灰色 */
let ColorText = UIColor.xq_color(withHex: 0x656a73)
/** 深 灰色 */
let ColorDarkGray = UIColor.xq_color(withHex: 0x122139)
/** 浅 灰色 */
let ColorLightGray = UIColor.xq_color(withHex: 0xbabcc0)
/** view的背景色 */
let ColorAppBack = UIColor.xq_color(withHex: 0xEEF2F9)

/** 应用程序主窗口 */
let keyWindow = UIApplication.shared.keyWindow
/** 屏幕大小 */
let screenBounds = UIScreen.main.bounds
/** 屏幕宽 */
let screenWidth = UIScreen.main.bounds.width
/** 屏幕高 */
let screenHeight = UIScreen.main.bounds.height

let statusBarHeight: CGFloat = UIApplication.shared.statusBarFrame.size.height
let iPhoneXHeight: CGFloat = 812
let navBarHeight:CGFloat = 44.0
/** iPhone X */
let APP_iPhoneX = (screenWidth == 315 && screenHeight == 812 ? true : false)
/** Status bar height. */
let APP_StatusBarHeight = (APP_iPhoneX ? 44.0 : 20.0)
/** APP_TabbarHeight */
let APP_TabbarHeight = (APP_iPhoneX ? (49.0 + 34.0) : 49.0)
/** Tabbar safe bottom margin. */
let APP_TabbarSafeBottomMargin = (APP_iPhoneX ? 34.0 : 0.0)
/** Status bar & navigation bar height. */
let APP_StatusBarAndNavigationBarHeight = (APP_iPhoneX ? 88.0 : 64.0)


/** 日期格式化 */
let matter: DateFormatter = DateFormatter()


/** 用户信息存储 */
let kUserId = "kUserId"
let kToken = "kToken"
